import request from '@/utils/request'
export const getShuffling = () => {
  return request({
    method: 'GET',
    url: 'home/swiper'
  })
}

export const getGroup = () => {
  return request({
    method: 'GET',
    url: 'home/groups'
  })
}

export const getCity = (level) => {
  return request({
    method: 'GET',
    url: `area/city?${level}`
  })
}

export const getHot = () => {
  return request({
    method: 'GET',
    url: 'area/hot'
  })
}

export const getctid = (cityID) => {
  return request({
    method: 'GET',
    url: `/houses/condition?id=${cityID}`
  })
}

export const getcsubway = (subwayID) => {
  return request({
    method: 'GET',
    url: `/houses/condition?id=${subwayID}`
  })
}

export const gethouse = (params) => {
  return request({
    method: 'GET',
    url: '/houses?cityId=AREA|88cff55c-aaa4-e2e0',
    params
  })
}

// export const getConditions = (params) => {
//   return request({
//     method: 'GET',
//     url: 'http://liufusong.top:8080/houses/params',
//     params
//   })
// }
